--全局修改生产速度函数
local speed = 250
replacespeed = {
    --快速修改机器的生产速度
    [1] = function(assemblingmachinename)
        data.raw["assembling-machine"][assemblingmachinename].crafting_speed = speed
    end,
    [2] = function(miningmachinename)
        data.raw["mining-drill"][miningmachinename].mining_speed = speed
    end
}
